package cn.zane.principle.richterSubstitutionPrinciple.oldCode;

import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: zane
 * @Date: 2024/12/15
 * @Description:
 */
@Slf4j
public class CashCard {

    /**
     * 提现
     *
     * @param orderId 单号
     * @param amount  金额
     * @return 状态码
     */
    public String withdrawal(String orderId, BigDecimal amount) {
        log.info("提现成功,单号:{},金额:{}", orderId, amount);
        return "0000";
    }

    public String recharge(String orderId, BigDecimal amount) {
        // 模拟充值成功
        log.info("充值成成功,单号:{},金额:{}", orderId, amount);
        return "0000";
    }

    public List<String> tradeFlow() {
        log.info("交易流水查询成功");
        return List.of("10001,100.00","10001,80.00");
    }
}
